adding resize and keyboard offset