Improves use of space on moblie header

Also made the code a bit easier to read