refactoring profile view into backbone