move action buttons to header & check login status