Adding the username in header and adding some events