view and post requests now working