improved layer gui +fixed selection bugs