moved logic in photos view to controller
fixed instagram authentication