added devise and changed layout