header and devise improvements