added logout, improved admin area