Rebased from original launchpad code
Added several corrections on the PoS frontend