refactoring unfinished
added block ui for ajax request