Added options to show/hide controls and pagination