updated to support sliding menu