added retrievevalues function to schedaa model and logic to controller