added header code and login buttons