Added actionlister to button

Apply button now grabs text from text fields.