Refactor show_follow and profile pages and add tests for checking dependence functionality