adding options dialog and small fixes