added routes and flash messages and add cool defined routes