Refactored prescription page