improving drawer/sidebar script