fix top and bottom bar