The present invention generally relates to a pharmaceutical dosage form and controlled release of biologically active agents, diagnostic agents, reagents, cosmetic agents, and agricultural/insecticide agents. In one embodiment, the dosage form has a substrate that forms a compartment, wherein the substrate includes at least a first piece and a second piece, wherein the first piece operably links to the second piece. The dosage form contains a drug content that is loaded into the compartment. The dosage form also has a releaser operably linked to the substrate which upon contact with water or body fluid is capable of separating the first and second piece to open the compartment and release the drug content.