fix a bug in session.pl
add convenience action buttons to main menu