Refactor render and disable/enable
Refactor logout button
Fix no method 'apply' error in js