Changed floats to CGFloats & added mem fixes

Also fixed issue where PH would crash when tapping the selected view
too many times