added some handlers to loginview