Improved routes, pinController and Implemented html