Added ajax capabilities to persist menu orientation