fix rotation bug, add close to dialogfragments