Changed calculation to get navigation bar height