Refactored App into a view set and added pk's in 
environment variables