refactored some of prescription controllers instance vars into seperate model