Added view_post functionalyty to the main page