BUG: fixes for 3.1 version

Added allow_action statics and updated redirectBack() function calls