extracted index controller and view into seperate folders
server takes post requests