Fixed resize and added close feature in options