added public folder and changed routes file