Fix empty posts array
Improve new post UI and add autoffocus