merged generic view and signup function