fixed homepage and profile functionality