decorate index and login page