adding move row functionality, code style changes