cleaned up navbar form code