setting controller for masterpassword layout