Implemented profile UI; added page switch logic; added add post function