More UI improvements. FOund out that params[:action] you can get action and act upon it