Creating posts and defining  layout