flask base controller fixes

Signed-off-by: pussbb <pussbb@gmail.com>