refactor for code repetition elimination
some improvement on gallery manager routes
added gallery deletion