added admin functions to flask server