replace jquery calls with promises and use login/signup sub-views