added alignment option in editor and in real-time