fixed bug: now stops menu from sliding to far depending on state.