added option to have action bar both at top and bottom