restructuring blog frontend - updating controller