Rewrote posts console to fix ajax bug